package com.gxa.logistics.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@ApiModel(value = "修改菜单")
public class MenuUpdateDTO implements Serializable {

    @ApiModelProperty(name = "menuId",notes = "菜单Id",dataType = "String",required = true)
    @NotNull(message = "菜单不能为空")
    private Integer menuId;

    @ApiModelProperty(name = "menuName",notes = "菜单名",dataType = "String",required = true)
    @NotBlank(message = "菜单名不能为空")
    @Size(min = 2, message = "菜单名：请输入至少2个字符")
    private String menuName;

    @ApiModelProperty(name = "parentId",notes = "父节点ID",dataType = "Integer",required = true)
    private Integer parentId;

    @ApiModelProperty(name = "icon", notes = "菜单图标", dataType = "String", required = true)
    private String icon;

    @ApiModelProperty(name = "component", notes = "组件", dataType = "String", required = true)
    private String component;

    @ApiModelProperty(name = "path", notes = "路径", dataType = "String", required = true)
    private String path;

}
